package hibernate.clientAccount;

import hibernate.billStream.Bill;
import hibernate.administratorAccount.FrontDesk;

public class AbstractClient {
	
	private Long id;
	private String note;
	private FrontDesk operator;
	private Group group;
	
	public void setGroup(Group group){this.group=group;}
	
	public Group getGroup(){return group;}
	
	public void setOperator(FrontDesk fd){this.operator=fd;}
	
	public FrontDesk getOperator(){return operator;}
	
	public void setId(Long id){
		this.id=id;
	}
	
	public Long getId(){
		return id;
	}
	
	public void setNote(String note){
		this.note=note;
	}
	
	public String getNote(){
		return note;
	}
	
	public boolean equals(Object obj){
		if(!(obj instanceof AbstractClient))
			return false;
		else return this.id.equals(((AbstractClient)obj).id);
	}
	
	public String toString(){
		return this.id.toString();
	}
}
